import {createStore,combineReducers,applyMiddleware} from "redux"
import {composeWithDevTools} from "redux-devtools-extension"
import thunk from "redux-thunk"
import home from "./modules/home"
import login from "./modules/login"
import register from "./modules/register"
import shop from "./modules/shop"
import list from "./modules/list"
import cate from "./modules/cate"
import detail from "./modules/detail"

const reducer=combineReducers({
    home,
    login,
    register,
    shop,
    list,
    cate,
    detail
})


const store=createStore(reducer,composeWithDevTools(applyMiddleware(thunk)))

export default store;